import http from "@/http/index";

export default {

    insert: {
        name: "类目新增",
        url: "/api/category",
        call: async function (params: any = {}){
            return await http.post(this.url, params)
        }
    },
    update: {
        name: "类目修改",
        url: "/api/category",
        call: async function (params: any = {}) {
            return await http.put(this.url, params)
        }
    },
    select: {
        name: "类目查找",
        url: "/api/category",
        call: async function (params: any = {}) {
            return await http.get(this.url, params)
        }
    },
    delete: {
        name: "类目删除",
        url: "/api/category",
        call: async function (params: any = {}) {
            return await http.delete(this.url, params)
        }
    }


}